#define _CRT_SECURE_NO_WARNINGS
#include"SList.h"
void TestSList()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);

	SLTPushFront(&plist, 13);
	SLTPushFront(&plist, 12);
	SLTPushFront(&plist, 11);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPopBack(&plist);
	SLTPrint(plist);

	SLTNode*pos=SListFind(plist, 2);
	SListInsert(&plist, pos, 100);
	SLTPrint(plist);

	pos= SListFind(plist, 11);
	SListErase(&plist, pos);
	SLTPrint(plist);


	SListDestroy(&plist);
	SLTPrint(plist);


}
int main()
{
	TestSList();
	return 0;
}